
Page({
    data: {
        userInfo:{},
        arr:[1,2,3]
    },
    onShow:function(){
    var userInfo= wx.getStorageSync('userInfo');
    this.setData({
        userInfo:userInfo
    })
     this.getMyCollect();
    },
    getMyCollect:function () {
         
        var _self=this;
         wx.request({
            url:getApp().globalData.baseUrl+'/wx/articles/follow/getList?openid='+this.data.userInfo.openid,
            method:"GET",
            header: {
                'openid':this.data.userInfo.openid, //公用请求头
                'content-type': 'application/json'
            },
            success: function(res) {
           
             console.log(res)
             _self.setData({
                showList:res.data.obj.list
             })
             if (res.data.code==200) {

             }else{
              
             }
         }
     })
            
           
         
    },
   
     turnDetail:function(e){
       console.log(e)
       
        wx.navigateTo({
            url: '/pages/communityDetail/communityDetail?id='+e.currentTarget.dataset.code.articlesId
        })
    },
});